﻿using YNTK.Common.Const;
using YNTK.Common.Entity;
using SqlSugar;

namespace YNTK.System.Entitys.Resources
{
    /// <summary>
    /// 管理体系认证业务范围分类
    /// </summary>
    [SugarTable("base_businessscope")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class BusinessScopeEntity : CLDEntityBase
    {
        /// <summary>
        /// 父级分类id
        /// </summary>
        [SugarColumn(ColumnName = "F_ParentId")]
        public string ParentId { get; set; }

        /// <summary>
        /// 分类(0.大类 1.中类 2.小类)
        /// </summary>
        [SugarColumn(ColumnName = "F_Type")]
        public int Type { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        [SugarColumn(ColumnName = "F_Name")]
        public string Name { get; set; }

        /// <summary>
        /// 英文名称
        /// </summary>
        [SugarColumn(ColumnName = "F_EnglishName")]
        public string EnglishName { get; set; }

        /// <summary>
        /// 分类内容说明
        /// </summary>
        [SugarColumn(ColumnName = "F_Description")]
        public string Description { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        [SugarColumn(ColumnName = "F_SortCode")]
        public long? SortCode { get; set; }
    }
}
